import { Entity, Column, PrimaryGeneratedColumn,BaseEntity } from 'typeorm';
/**
 *用户名
 *
 * @export
 * @class User
 */
@Entity("user",{synchronize:true})
export  class User extends BaseEntity{
    /**ID */
    @PrimaryGeneratedColumn("uuid",{comment:"ID"})
    id!:string

    @Column({comment:"账号",unique:true})
    account!:string

    @Column({comment:"邮箱",unique:true})
    public mail!: string;

    @Column({comment:"用户名"})
    public username!: string;

    @Column({comment:"显示名"})
    public displayname!: string;

    @Column({comment:"密码"})
    password!:string

    @Column({type:"bigint",default:0,comment:"权限位01"})
    public permission01:number=0;

    @Column({type:"bigint",default:0,comment:"权限位02"})
    public permission02:number=0;

    @Column({type:"bigint",default:0,comment:"权限位03"})
    public permission03:number=0;

    @Column({type:"bigint",default:0,comment:"权限位04"})
    public permission04:number=0;

    @Column({type:"bigint",default:0,comment:"权限位05"})
    public permission05:number=0;

    @Column({type:"bigint",default:0,comment:"权限位06"})
    public permission06:number=0;

    @Column({type:"bigint",default:0,comment:"权限位07"})
    public permission07:number=0;

    @Column({type:"bigint",default:0,comment:"权限位08"})
    public permission08:number=0;
    

    @Column({comment:"创建时间"})
    public created: Date=new Date();

    @Column({comment:"修改时间"})
    public modifyed: Date=new Date();

    




   
   
}